
#!/bin/bash
scriptPath=$(cd $(dirname $0) && pwd)
cd ${scriptPath}

name=webhook.py

if ! ps aux | grep ${name} | grep -v grep 2>&1 >/dev/null ; then
        echo "${name}进程不存在，启动进程"
	./start.sh
else
	echo "${name}进程运行中"
	./status.sh
fi
